package yams.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import yams.common.IRepository;
import yams.domain.SkuEntity;

/**
 * 产品明细持久化服务
 * Created by Silence on 2016/11/11.
 */
@Repository("skuRepository")
public interface ISkuRepository extends IRepository<SkuEntity> {

    @Query("select c from SkuEntity c where c.house is null")
    Page<SkuEntity> findNullHouse(Pageable page);
}
